{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo web_url('storeqr/sqrcode/apply');}">申请列表</a></li>
</ul>
<div class="app-content">
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover">
				<thead>
				<tr>
					<th style="width:80px;">状态</th>
					<th style="width:80px;">代理名称</th>
					<th style="width:80px;">场景备注</th>
					<th style="width:60px;">二维码类型</th>
					<th style="width:60px;">申请数量</th>
					<th style="width:60px;">通过数量</th>
					<th style="width:100px;">申请时间</th>
					<th style="width:200px; text-align:center">操作</th>
				</tr>
				</thead>
				<tbody>
				{loop $list $row}
				<tr>
					<td><span class="label label-{if $row['status'] == 1}danger{elseif $row['status'] == 0}warning{else}primary{/if}">{if $row['status'] == 1}未通过{elseif $row['status'] == 0}待审核{else}已生成{/if}</span></td>
					<td>{$row['agentname']}</td>
					<td>{$row['remark']}</td>
					<td><span class="label label-{if $row['modellabel'] == '含参'}danger{elseif $row['modellabel'] == '智能'}warning{else}primary{/if}">{$row['modellabel']}</span></td>
					<td>{$row['num']}</td>
					<td>
						{if !empty($row['pnum'])}
						{$row['pnum']}
						{else}
						——
						{/if}
					</td>
					<td style="font-size:12px; color:#666;">
						{php echo date('Y-m-d <br /> H:i:s', $row[createtime]);}
					</td>
					<td class="text-center" style="text-align: center;">
						{if $row['status'] == 0}
						<a class="btn btn-default" href="{php echo web_url('storeqr/sqrcode/applyno', array('id' => $row['id']));}" title="编辑">不通过</a> -
						<a class="btn btn-primary" href="{php echo web_url('storeqr/sqrcode/post', array('id' => $row['id']));}" target="_blank" title="管理">去生成</a> - {/if}
						<a class="btn btn-default" href="{php echo web_url('storeqr/sqrcode/applydel', array('id' => $row['id']));}" title="删除">删除</a>
					</td>
				</tr>
				{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
</div>
{php include wl_template('common/footer');}